<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑动漫</title>
    <link rel="stylesheet" href="/styles.css">
</head>
<body>
<h1>编辑动漫</h1>
<form th:action="@{/anime/edit/{id}(id=${anime.id})}" method="post">
    <div>
        <label for="title">标题</label>
        <input type="text" id="title" name="title" th:value="${anime.title}" required>
    </div>
    <div>
        <label for="description">简介</label>
        <textarea id="description" name="description" th:text="${anime.description}" required></textarea>
    </div>
    <div>
        <label for="imageUrl">图片路径</label>
        <input type="text" id="imageUrl" name="imageUrl" th:value="${anime.imageUrl}" required>
    </div>
    <div>
        <label for="detailsUrl">详情页路径</label>
        <input type="text" id="detailsUrl" name="detailsUrl" th:value="${anime.detailsUrl}" required>
    </div>
    <button type="submit">更新</button>
</form>
<a href="/anime">返回动漫列表</a>
</body>
</html>